package com.fzz.service;

import com.fzz.domain.Admin;
import com.fzz.domain.User;
import com.fzz.domain.View;
import com.github.pagehelper.PageInfo;
import org.springframework.data.relational.core.sql.In;
import org.springframework.stereotype.Service;
import org.springframework.ui.Model;

import javax.jws.WebParam;
import java.util.List;

@Service
public interface AdminService {

    //管理员登录
    public Admin adminLogin(String adminName,String password);

    //管理员修改信息
    public Integer adminUpdate(Admin admin);

    //用户信息分页查询
    public PageInfo<User> selectUserWithPage(Model model,Integer id,String username,Integer page, Integer count);

    //根据id查询
    public User selectUserById(Integer id);

    //修改用户信息
    public Integer editUserInfo(User user);

    //删除用户信息
    public Integer deleteUserInfoById(Integer id);
}
